import axios from './axios'
export function getProductName(params={}){
    return axios({
        url:'/commodity-name/commodityName',
        params
    })
}
export function postProductName(params){
    return axios({
        method:'post',
        url:'/commodity-name/commodityName',
        params
    })
}
export function deleteProductName(params){
    return axios({
        method:'delete',
        url:'/commodity-name/commodityName',
        params
    })
}
export function putProductName(params){
    return axios({
        method:'put',
        url:'/commodity-name/commodityName',
        params
    })
}

//导入
export function postExcelPname(data){
    return axios({
        method:'post',
        url:'/commodity-name/importCommodityName',
        data
    })
}